import wxsdk from "@/utils/wxsdk";
import global_ from "../../global.config";
export const ACT_CODE = "wx20190308";
export const BASE_TEXT = "本活动由原圈网络提供技术支持";
export const SHARE_TITLE = "读语音赢奖品，读出你的“国际范儿”";
export const SHARE_DESC = "我好像已经中奖了，你还不试试？很多种礼品哟";
export const SHARE_LINK = location.protocol + '//' + location.host + '/act/jbact/index';
export const SHARE_IMG_URL = "http://rs.static.quanc.com.cn/activies/jbAct/share.png";
export function checkaward(list, id) {
    let flag = false;
    list.forEach(function (v, i) {
        if(v.prizecode == id){
            flag = true;
        }
    })
    return flag;
}
export function initShare() {
    global_.SHARE_TITLE = SHARE_TITLE;
    global_.SHARE_DESC = SHARE_DESC;
    global_.SHARE_LINK = SHARE_LINK;
    global_.SHARE_IMG_URL = SHARE_IMG_URL;
    wxsdk.init();
}